package Entity;

import java.io.Serializable;

public class Packet implements Serializable
{
	/**
	 * This is the "wrapping" for the objects that we want to get or set in the DB.
	 * it has a kind field in order to know which SQL to execute and object that we want to get or set.
	 * @author all of us.
	 */
	private static final long serialVersionUID = 2323381836436489131L;

	public enum Kind {save,get};
	private Object o;
	private Kind e;
	public Packet() {
		// TODO Auto-generated constructor stub
	}
	
	public void setE(Kind e) {
		this.e = e;
	}
	
	public Object getO() {
		return o;
	}
	
	public void setO(Object o) {
		this.o = o;
	}
	
	public Kind getE() {
		return e;
	}
}
